
<%@ page import="cn.gudian.cms.Message.LinkMan" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <title><g:message code="linkMan.edit" default="Edit LinkMan" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}"><g:message code="home" default="Home" /></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="linkMan.list" default="LinkMan List" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="linkMan.new" default="New LinkMan" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="linkMan.edit" default="Edit LinkMan" /></h1>
            <g:if test="${flash.message}">
            <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
            </g:if>
            <g:hasErrors bean="${linkManInstance}">
            <div class="errors">
                <g:renderErrors bean="${linkManInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${linkManInstance?.id}" />
                <g:hiddenField name="version" value="${linkManInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name"><g:message code="linkMan.name" default="Name" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'name', 'errors')}">
                                    <g:textField name="name" value="${fieldValue(bean: linkManInstance, field: 'name')}" />

                                </td>
                            </tr>
                    
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="mobile"><g:message code="linkMan.mobile" default="Mobile" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'mobile', 'errors')}">
                                    <g:textField name="mobile" value="${fieldValue(bean: linkManInstance, field: 'mobile')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="tel"><g:message code="linkMan.tel" default="Tel" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'tel', 'errors')}">
                                    <g:textField name="tel" value="${fieldValue(bean: linkManInstance, field: 'tel')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="email"><g:message code="linkMan.email" default="Email" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'email', 'errors')}">
                                    <g:textField name="email" value="${fieldValue(bean: linkManInstance, field: 'email')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="company"><g:message code="linkMan.company" default="Company" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'company', 'errors')}">
                                    <g:textField name="company" value="${fieldValue(bean: linkManInstance, field: 'company')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="place"><g:message code="linkMan.place" default="Place" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'place', 'errors')}">
                                    <g:textField name="place" value="${fieldValue(bean: linkManInstance, field: 'place')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="comTel"><g:message code="linkMan.comTel" default="Com Tel" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'comTel', 'errors')}">
                                    <g:textField name="comTel" value="${fieldValue(bean: linkManInstance, field: 'comTel')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="comFax"><g:message code="linkMan.comFax" default="Com Fax" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'comFax', 'errors')}">
                                    <g:textField name="comFax" value="${fieldValue(bean: linkManInstance, field: 'comFax')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="description"><g:message code="linkMan.description" default="Description" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'description', 'errors')}">
                                    <g:textField name="description" value="${fieldValue(bean: linkManInstance, field: 'description')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="linkGroup"><g:message code="linkMan.linkGroup" default="Link Group" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: linkManInstance, field: 'linkGroup', 'errors')}">
                                    <g:select name="linkGroup.id" from="${cn.gudian.cms.Sms.LinkGroup.list()}" optionKey="id" value="${linkManInstance?.linkGroup?.id}"  />

                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'update', 'default': 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'delete', 'default': 'Delete')}" onclick="return confirm('${message(code: 'delete.confirm', 'default': 'Are you sure?')}');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
